<?php
include_once('connection/connection.php');
$id=$_POST['id'];
$district=$_POST['district'];
$block=$_POST['block'];
$station=$_POST['station'];
$lat=$_POST['lat'];
$long=$_POST['long'];
//$catch=$_POST['catch'];
$frm=$_POST['frm'];
$to=$_POST['to'];

$query_rainfall_main="update tbl_dtls_rainfall set Station='$station',Station_Latitude='$lat',Station_Longitude='$long',year_from='$frm',year_to='$to'  where id='$id'";
$result_rainfall_main=mysql_query($query_rainfall_main);
if($result_rainfall_main)
{
header('Location:rainfall_list.php?DT='.$district.'&BC='.$block.'');
}
?>